<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>天众供应链云仓储管理系统</title>
	<!-- 图标 -->
	<link type="image/x-icon" href="./favicon.ico?radmon={:time()}" rel="shortcut icon">
	<include file="Public/header" />
</head>
<body>
	<div class="easyui-layout" id="layout" data-options="fit:true">
		<div  data-options="region:'north'" border="false">
			<div class="topLine">
							<p class="fl">
								<span class="icon icon-users">&nbsp;</span>仓库编码：({$Think.session.warehouse_code})&nbsp;&nbsp;&nbsp;
								仓库名称：({$Think.session.warehouse_name})&nbsp;&nbsp;&nbsp;
								用户：管理员({$Think.session.nick_name})&nbsp;&nbsp;&nbsp;<span class="icon icon-role">&nbsp;</span>登陆时间：{$Think.session.logintime|date='Y-m-d H:i:s',###}
							</p>
							<p class="fr">
								<span class="icon icon-table_refresh">&nbsp;</span><a  title="需盘库" href="javascript:void(0)" onclick="showTab('{:U('Stock/goodslog')}','库存预警')">需盘库<span style="color:red;font-weight:bold">({$checkstock_count})</span></a>
								<span class="icon icon-arrow_refresh">&nbsp;</span><a  title="更新缓存" href="javascript:void(0)" onclick="clearCache()">更新缓存</a>
								<span class="icon icon-user_edit">&nbsp;</span><a title="密码修改" onclick="indexgoodsObj.passwordsetBar()" href="#">密码修改</a>
								<a href="javascript:void(0)" onclick="showTab('{:U('Auth/baseConfig')}','基本设置')"><span class="icon icon-set">&nbsp;</span><span class="nav">设置</span></a>
								<span class="icon icon-door_out">&nbsp;</span><a title="退出" href="javascript:void(0)" onclick="logout()">退出</a>
								
								<a href="javascript:void(0)" class="easyui-menubutton" data-options="menu:'#bag_mm1',iconCls:'icon-shape_move_front'">更换皮肤</a>
								<div id="bag_mm1" style="width:150px;">
									<div data-options="iconCls:'icon-shape_square'" onclick="javascript:changeTheme('default')">default</div>
									<div data-options="iconCls:'icon-shape_square_sunny'" onclick="javascript:changeTheme('sunny')">sunny</div>  
									<div data-options="iconCls:'icon-shape_square_black'" onclick="javascript:changeTheme('dark-hive')">dark-hive</div>  
									<div data-options="iconCls:'icon-shape_square_pepper_grinder'" onclick="javascript:changeTheme('pepper-grinder')">pepper-grinder</div>  
									<div data-options="iconCls:'icon-shape_square_cupertino'" onclick="javascript:changeTheme('cupertino')">cupertino</div>
									<div data-options="iconCls:'icon-shape_square_metro_blue'" onclick="javascript:changeTheme('metro-blue')">metro-blue</div>
									<div data-options="iconCls:'icon-shape_square_metro_gray'" onclick="javascript:changeTheme('metro-gray')">metro-gray</div>
									<div data-options="iconCls:'icon-shape_square_metro_green'" onclick="javascript:changeTheme('metro-green')">metro-green</div>
									<div data-options="iconCls:'icon-shape_square_metro_orange'" onclick="javascript:changeTheme('metro-orange')">metro-orange</div>
									<div data-options="iconCls:'icon-shape_square_metro_red'" onclick="javascript:changeTheme('metro-red')">metro-red</div>
									<div data-options="iconCls:'icon-shape_square_insdep'" onclick="javascript:changeTheme('insdep')">insdep</div>
								</div>
							</p>
							
			</div>
				
		</div>
		<div data-options="region:'south',split:true" style="height: 30px;background: rgb(210, 224, 242);">
			<div class="footer">天众云仓管理系统      Power by 天众供应链</div>
		</div>
	<!-- 密码修改 -->
	<div id="passwordsetDialog" class="easyui-dialog" title="密码修改" style="width:330px;height:280px;padding:10px 20px"
        closed="true" buttons="#passwordsetButtons"  modal="true">
		<form id="passwordsetForm" method="post" novalidate>
			<div class="fitem">
                <label>用户名</label>
                <input name="username" id="passwordset_username" class="easyui-textbox" data-options="readonly:true,height:30" />
            </div>
			<div class="fitem">
                <label>昵称</label>
                <input name="nick_name" id="passwordset_nick_name" class="easyui-textbox" data-options="readonly:true,height:30" />
            </div>
            <div class="fitem">
                <label>原密码</label>
				<input name="old_password" class="easyui-textbox" data-options="required:true,height:30" />
			</div>
			<div class="fitem">
                <label>新密码</label>
               <input name="new_password" type="password"  class="easyui-textbox" data-options="required:true,height:30" />
            </div>
			<div class="fitem">
                <label>确认密码</label>
                 <input name="confirm_new_password" type="password"  class="easyui-textbox" data-options="required:true,height:30" />
            </div>
		</form>
    </div>
	<div id="passwordsetButtons">
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="indexgoodsObj.save('{:U('Auth/passwordset')}')" style="width:90px">修改</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#passwordsetDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /密码修改 -->
		<div data-options="region:'west',split:true," title="导航菜单" style="width:220px;">
		 	<div class="easyui-accordion">
				<volist name="Menu" id="vo">
				<div title="{$vo.title}" data-options="iconCls:'icon icon-{$vo.icon}',selected:true" style="overflow:auto;padding:10px;">
		           <ul class="navlist">
					<volist name="vo.voo" id="voo">
		        				<li>
		        					<a href="javascript:void(0)" onclick="showTab('./index.php?s={$voo.contr}/{$voo.func}','{$voo.title}')"><span class="icon icon-layout_content">&nbsp;</span><span class="nav">{$voo.title}
									
									</span></a>
		        				</li> 
					</volist> 
		        	</ul>
		        </div>
				</volist>
		    </div>
		</div>
		<div id="Tabs" class="easyui-tabs" data-options="region:'center',border:'false'">
		    <div title="首页" style="padding:10px">
				<iframe src="{:U('welcome')}" scrolling="yes" style="width:100%;height:98%;border:0;"></iframe>
	       	</div>
		</div>
	<script type="text/javascript">
		//退出
		function logout(){
			var url="{:U('Index/logout')}";
			$.ajax({
                async:false,
                type:"get",
                url:url,
                success: function(result){
                	if(result.status) location.href="{:U('Index/index')}";
                }
            });
		}

		//清除缓存
		function clearCache(){
			var url="{:U('system/clearCache')}";
			$.ajax({
                async:false,
                type:"get",
                url:url,
                success: function(result){
                	if(result.status) $.messager.confirm('提示消息','缓存更新成功!',function(r){location.href="{:U('Index/index')}";}); 
                	
                }
            });
		}
	</script>
</div>
</body>
</html>